package cn.wildfirechat.app.jpa;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

@Entity
@Table(name = "user_points")
@Data
public class UserPoints {
    @Id
    private Long id;                    // 主键ID
    private String uid;                 // 用户UID
    private String userName;            // 用户姓名
    private String mobile;              // 用户手机号
    private Integer totalPoints;        // 总积分
    private Integer availablePoints;    // 可用积分
    private LocalDateTime createdAt;    // 创建时间
    private LocalDateTime updatedAt;    // 修改时间
}
